package com.beerandjesus.sportofkings.handicapper.strategy;

import com.beerandjesus.sportofkings.handicapper.model.TrainerJockeyOwner;
import com.beerandjesus.sportofkings.handicapper.model.JockeyAtDistanceOrOnTurf;

import java.math.BigDecimal;

/**
 * Interface for resolving jockey performance statistics
 * Date: Sep 27, 2012
 * Time: 7:27:13 PM
 */
public interface JockeyPerformanceResolver {

    /**
     * Calculate a jockey's win percentage. May return null if underlying rules determine
     * the win percentage is not reliable or meaningful.
     * @param tjo The TrainerJockeyOnwer
     * @param jock The JockeyAtDistanceOrOnTurf
     * @return The win percentage, or null if it cannont or should not be calculated
     */
    public BigDecimal getWinPercentage(TrainerJockeyOwner tjo, JockeyAtDistanceOrOnTurf jock);
    
}
